            <div class="head"><h5 class="iFrames">Selections</h5></div>
            <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                <thead>
                    <tr>
                    	<?php foreach ($table_headers as $table_header) {
                    		?>
                    		
                    		<th><?php echo $table_header?></th>
                    		
                    		<?php 
                    	}?>
                    	<th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    	<?php foreach ($table_rows as $table_row){ ?>
		                    <tr class="gradeA">
		                    	<?php for ($i = 1; $i < count($table_row); $i++){?>
		                        	<td><?php echo $table_row[$i]; ?></td>
		                        	<?php }?>
		                        	
		                        	<td>
		                        		<img style="cursor:pointer"   src="<?php echo image_path("icons/color/cross.png")?>" onclick="jConfirm('Are you sure you want to delete the selection?', 'Confirmation Dialog', function(r){if (!r){return false} else { window.location.href='<?php echo url_for('listing_selection/delete?selection_id=' . $table_row[0].'&listing_id='.$listing->getId() )?>' }});")) />
		                        	</td>
		                    </tr>
                        <?php }?>
                </tbody>
            </table>
       
        
        <script>
    	oTable = $('#example').dataTable({
    		"bJQueryUI": true,
    		"sPaginationType": "full_numbers",
    		"sDom": '<""f>t<"F"lp>',
    		"bDestroy": true
    	});
        </script>